﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class SYS_USER : BusinessObject
    {
        public int UserID { get; set; }
        public string UserCode { get; set; }
        public string UserName { get; set; }
        public string UserPass { get; set; }
        public bool? IsUse { get; set; }


        public SYS_USER()
        {
            AddRule(new ValidateRequired("UserCode"));
            AddRule(new ValidateRequired("UserName"));
            AddRule(new ValidateRequired("UserPass"));
        }

        public SYS_USER(int userID, string userCode, string userName, string userPass, bool? isUse)
            : this()
        {
            UserID = userID;
            UserCode = userCode;
            UserName = userName;
            UserPass = userPass;
            IsUse = isUse;
        }
    }
}
